﻿namespace Ganss.Excel.Tests.Data
{
    class ProductMultiColumsReload
    {
        public string Name { get; set; }
        public int NewNumber { get; set; }
        public decimal NewPrice { get; set; }
        public string NewValue { get; set; }

        public override bool Equals(object obj) =>
            obj is ProductMultiColumsReload reload
            && Name == reload.Name
            && NewNumber == reload.NewNumber
            && NewPrice == reload.NewPrice
            && NewValue == reload.NewValue;

        public override int GetHashCode() =>
            $"{Name}{NewNumber}{NewPrice}{NewValue}".GetHashCode();
    }
}